<?php

namespace Resources\Form;

use Zend\Form\Form;

class AdditionalForm extends Form {
    public function __construct($name = null)
    {
        parent::__construct('register');
        $this->setAttribute('method', 'post');
        $this->setAttribute('class', 'form-horizontal');
        $this->setInputFilter(new AdditionalFormFilter());
    
        $this->add(array(
            'name' => 'ID',
            'type' => 'Hidden',
            array(
                'default' => '0'
            )
        ));
        
        $this->add(array(
            'name' => 'TITLE',
            'options' => array(
                'label' => 'Title ',
        
            ),
            'type' => 'Text',
            'attributes' => array(
                'class' => 'form-control'
            )
        ));
      
        $this->add(array(
            'name' => 'DURATION',
            'options' => array(
                'label' => 'Duration'
            ),
            'type' => 'Text',
            'attributes' => array(
                'class' => 'form-control'
            )
        ));
            
        $this->add(array(
            'name' => 'REMARK',
            'options' => array(
                'label' => 'Remark ',
        
            ),
            'type' => 'Textarea',
            'attributes' => array(
                'class' => 'form-control',
                'style' => 'resize: none'
            )
        ));
      
        $this->add(array(
            'name' => 'BTNSAVE',
            'options' => array(
                'label' => ''
            ),
            'attributes' => array(
                'value' => 'Save',
                'class' => 'btn btn-default'
            ),
            'type' => 'submit',
            'id' => 'submitbutton'
        ));
    
        $this->add(array(
            'name' => 'BTNCLEAR',
            'options' => array(
                'label' => ''
            ),
            'attributes' => array(
                'value' => 'Clear',
                'class' => 'btn btn-default'
            ),
            'type' => 'submit',
            'id' => 'submitbutton'
        ));
    
        // We could also define the input filter here, or
        // lazy-create it in the getInputFilter() method.
    }
}